home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / BevelStyle.java < prev    next >
Text File  |  1998-08-21  |  2KB  |  75 lines

  1. package symantec.itools.awt;
  2.  
  3. import java.beans.PropertyVetoException;
  4.  
  5. //     05/31/97    LAB Updated to Java 1.1
  6.  
  7. /**
  8.  * BevelStyle is an interface for components with borders that can be drawn
  9.  * different ways. The "raised" style makes the component appears raised above
  10.  * the surrounding area, the "lowered" style makes the component appear lowered,
  11.  * the "line" style draws a simple line around the component, and components with
  12.  * the "none" style have nothing drawn around them.
  13.  * @author Symantec
  14.  */
  15. public interface BevelStyle
  16. {
  17.     //--------------------------------------------------
  18.     // constants
  19.     //--------------------------------------------------
  20.  
  21.     /**
  22.      * Defines the "lowered" shape border style. This makes the component appear
  23.      * lower than the surrounding area.
  24.      */
  25.     public static final int BEVEL_LOWERED = 0;
  26.  
  27.     /**
  28.      * Defines the "raised" shape border style. This makes the component appear
  29.      * raised above the surrounding area.
  30.      */
  31.     public static final int BEVEL_RAISED = 1;
  32.  
  33.    /**
  34.      * Defines the "line" shape border style. This draws a simple line around the
  35.      * component.
  36.      */
  37.     public static final int BEVEL_LINE = 2;
  38.  
  39.    /**
  40.      * Defines the "none" shape border style. This indicates the component will have
  41.      * nothing drawn around its border.
  42.      */
  43.     public static final int BEVEL_NONE = 3;
  44.  
  45.  
  46.     //--------------------------------------------------
  47.     // methods
  48.     //--------------------------------------------------
  49.  
  50.     /**
  51.      * Sets the new border style.
  52.      * @param style the new border style, one of BEVEL_LOWERED, BEVEL_RAISED,
  53.      * BEVEL_LINE, or BEVEL_NONE
  54.      * @exception PropertyVetoException
  55.      * if the specified property value is unacceptable
  56.      * @see #getBevelStyle
  57.      * @see #BEVEL_LOWERED
  58.      * @see #BEVEL_RAISED
  59.      * @see #BEVEL_LINE
  60.      * @see #BEVEL_NONE
  61.      */
  62.     public void setBevelStyle(int style) throws PropertyVetoException;
  63.     /**
  64.      * Gets the current border style.
  65.      * @return the current border style, one of BEVEL_LOWERED, BEVEL_RAISED,
  66.      * BEVEL_LINE, or BEVEL_NONE
  67.      * @see #setBevelStyle
  68.      * @see #BEVEL_LOWERED
  69.      * @see #BEVEL_RAISED
  70.      * @see #BEVEL_LINE
  71.      * @see #BEVEL_NONE
  72.      */
  73.     public int getBevelStyle();
  74. }
  75.